Skip to content

media: bcm2835-unicam: Start and stop media_pipeline with same node - #5409

Merged
pelwell merged 1 commit into
raspberrypi:rpi-6.1.yfrom
6by9:rpi-6.1.y-unicam
Mar 31, 2023
Merged

pelwell merged 1 commit into
raspberrypi:rpi-6.1.yfrom
6by9:rpi-6.1.y-unicam

Conversation

@6by9

@6by9 6by9 commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

media_pipeline_start and media_pipeline_stop now validate that the pipeline is being started and stopped with the same pipe and pad handles.
When running with embedded metadata (eg imx477 and imx708), the start typically happens from the metadata pad, whilst stop is always from the image pad.

Always pass the image pad to media_pipeline_start to ensure that the calls are balanced.

media_pipeline_start and media_pipeline_stop now validate that
the pipeline is being started and stopped with the same pipe
and pad handles.
When running with embedded metadata (eg imx477 and imx708), the
start typically happens from the metadata pad, whilst stop is
always from the image pad.

Always pass the image pad to media_pipeline_start to ensure
that the calls are balanced.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9

6by9 commented Mar 28, 2023

Copy link
Copy Markdown
Contributor Author

@naushir This fixes the issue for imx477.
Not observed for imx219 as it appears libcamera has disabled embedded metadata.
I'd not tested imx708 prior to this change, but don't see a splat with it.

@naushir

naushir commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

Looks good!

@6by9

6by9 commented Mar 31, 2023

Copy link
Copy Markdown
Contributor Author

Any other comments, or are we good to merge?
Without this we're getting a kernel WARN every time we stop IMX708 or IMX477 streaming (camera modules that use embedded data).

@pelwell
pelwell merged commit a2bdda0 into raspberrypi:rpi-6.1.y Mar 31, 2023
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Apr 3, 2023
See: raspberrypi/linux#5416

kernel: media: bcm2835-unicam: Start and stop media_pipeline with same node
See: raspberrypi/linux#5409

kernel: IMX708 link frequency changes
See: raspberrypi/linux#5381
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Apr 3, 2023
See: raspberrypi/linux#5416

kernel: media: bcm2835-unicam: Start and stop media_pipeline with same node
See: raspberrypi/linux#5409

kernel: IMX708 link frequency changes
See: raspberrypi/linux#5381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants